<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>登录</title>
        <link rel="stylesheet" type="text/css" href="/Public/Admin/css/index.css"/>
        <script type="text/javascript" src="/Public/Admin/js/jquery.min.js"></script> 
        <!--弹窗-->
        <script type="text/javascript" src="/Public/static/layer/layer.js" ></script> 
    </head>
    <body>
        <div class="page-login">
            <div class="main clearfix">
                <img src="/Public/Admin/images/logo.png" class="logo" />
                <form class="infoWrap fr">
                    <p>苏轨院综合办公门户</p>
                    <div class="inputWrap">
                        <i class="iconfont">&#xe65f;</i>
                        <input type="text" name="username" placeholder="用户名" value="<?php echo ($username); ?>" />
                    </div>
                    <div class="inputWrap">
                        <i class="iconfont">&#xe615;</i>
                        <input type="password" name="password" placeholder="密码" value=""/>
                    </div>
                    <a class="loginBtn btn-submit ajax-post" data-url="<?php echo U('Login/login');?>">登录</a>
                </form>
            </div>
        </div>
    </body>
    <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
    <script>
        $(initLogin());
        $(function(){
            $("input[name='username']").focus();
        })
        //回车登录
        $("input[name='username']").keydown(function (e) {
            if (e.keyCode === 13) {
                $(".btn-submit").click()
                return false;
            }
        });
    </script>
</html>